Hello everyone,
In this blog, I'll guide you through a challenge I encountered, focused on Hardcoded
Secrets. The challenge comes from a platform called MobileHackingLabs,
which is excellent for honing your mobile pentesting skills. Let’s dive in!
After opening the app. You will get an interface like this,
Upon launching the application, you are presented with a simple interface asking for a flag.
Further analysis using the Text Search feature in JADX revealed a class named `MainActivity`.
Inside the `MainActivity` class, the code first checks if the
entered text matches the string returned by the function `"kljujhwjzgje"`.
If this condition is met, it proceeds to display a toast message, stating *"Success"*. However, if the `kljujhwjzgje` method
returns false (indicating an incorrect Flag), a different toast message appears, saying *"Fail"*.
Copy this code, create a python file and paste this.
Make sure you have the required pycryptodome library installed. You can install it using pip:
└─$ pip install pycryptodome
Next, open the app and enter the flag.
You should see a message indicating "Success".